Epic stand save Sri Lanka in NZ Test