Australia lose two wickets chasing record 539