Added a test method for queue testing