Home PHM Williamson, Nicholls script third-highest Test partnership for NZ