testing a queue implementation