New Zealand Selector Gavin Larsen said Guptill gave the squad more depth, while also providing an update on Ross Taylor.
"We opted for extra batting cover for that final spot and with Martin
having been playing in the middle-order recently, he can cover a number
of positions for us," said Larsen.
"Ross is progressing nicely and is expected to take a full part in
training tomorrow. The team are looking forward to what will be a
special match beginning on Thursday."
Taylor injured himself during New Zealand's win in the fourth ODI
against England and could not play in the series decider which the
Guptill was axed from the Test team in 2016 when a prolonged slump saw his average on the longest format drop below thirty.
He played what was to date his last Test against India in Indore in
October 2016 but has reinvented himself on the domestic first class
scene as a middle-order batsman.
The match will be first Day-Night Test hosted by New Zealand, with the first ball scheduled for 03:00 SA time on Thursday.
Black Caps Test squad
Kane Williamson (c), Todd Astle, Trent Boult, Colin de Grandhomme, Matt Henry, Tom Latham, Henry Nicholls, Jeet Raval, Tim Southee, Ross Taylor, Neil Wagner, BJ Watling (wk), Martin Guptill