CHITTAGONG, Bangladesh (AP) — Kane Williamson's century helped New Zealand cruise to 280-5 against Bangladesh on the first day of the first test on Wednesday.

Williamson made his 114 facing 210 balls before he was trapped lbw by left-arm spinner Shakib Al Hasan in the day's second-to-last over. When captain Brendon McCullum also fell lbw in the last over to left-armer Abdur Razzak, the umpires ended a day in which Bangladesh struggled in the field but finished in style.

Bangladesh took three wickets for 36 runs to clamber back into the test, reward for tighter bowling in the last session.

Until the last two overs, however, New Zealand dominated after winning the toss, with opener Peter Fulton collecting 73.

Losing three late wickets disappointed New Zealand.

"We spoke about it in the last few days, to make it a big score when you get in," Fulton said. "So it was pretty disappointing to not be able to carry on with the job."

But it was satisfactory for the hosts.

"This was a good comeback," said Nasir Hossain, who removed Fulton. "I would say the game is still in our hand and we are now in a very good position."

Fulton said they were still in the hunt to post a good score.

"We have capable batsmen, if we can get up around that 400 mark, it would get us in a strong position," Fulton said.

After losing Hamish Rutherford for 34 at 57-1 while attempting a pull shot in the morning, Fulton and Williamson built a 126-run partnership.

Fulton blunted the Bangladesh attack through 198 balls, hitting seven boundaries and one six. He looked impressive in his third test half century and surprisingly fell in the penultimate over before tea off Nasir by giving an easy catch to Mominul Haque at cover.

Williamson carried on, untroubled and focused, and brought up his fourth test century with one of his few loose shots, a top-edged cut that ran down to the third man boundary. That was the last of his dozen boundaries.

Ross Taylor was with Williamson as he celebrated his ton, but not for long afterwards. Taylor ballooned a leg-side shot off Razzak to the covers and was out for 28 at 244-3, in the last regulation over with the old ball.

Bangladesh took the new ball straight away, and took the shine off New Zealand's effort as the Kiwis were caught again looking forward too early to a break.

Razzak toiled for 2-100, and Shakib, Sohag Gazi and Nasir claimed one wicket each among seven bowlers used at Zahur Ahmed Chowdhury Stadium.

Bangladesh dropped Al Amin, Mahmudullah and Naeem Islam from its 14-member squad and handed middle-order batsman Marshall Aiyub his test debut.

New Zealand picked newcomers Ish Sodhi and Corey Anderson and dropped Tom Latham, Mark Gillespie, Neil Wagner, and Dean Brownlie.