adds a test for restarting processes