New Zealand dismissed for 370 in 2nd test