tests for queue