Add tests for the queue