Added another method to remove job  and fixed random test failures