added queue clear and queue count to repotitory and test