Add tests for queue