hs-test: improved suite teardown and replaced PIDs with PPIDs