Wallabies improve after beating South Africa