Test HasNext(), Next() and ResetNext()