Add test cases for BufferedQueue