modification in qeueu class and test spec