New Zealand’s Test crown teetering after South Africa defeat