Added test in next()