add tests for queue