Batsmen shine as Australia edge Pakistan in World Cup warm-up