[test] Add unit test for test.next()