test iteration count of queue iterator