New Zealand bowler Chris Martin praised his team's spirit after recovering from a miserable start to the first Test against South Africa.