cleanup, add helper to tests, add processManager test