Proteas, Black Caps shootout for Test honours