fix kill request for invalid jobs; add tests