Fix test_queue