This need to be a little carefully done. We sometimes share the machine for the same test in FNAL with the same user (dataops) although this is testing machine so no real harm is done. but we don't want to kill all the jobs (there might be some other user testing something else). I think it is better do kill only jobs this unittested submitted. 
Besides this could be added in separate method so multiple test can use that.