tests: fix kill problems