Impelement test cases for queue