Invoke test instead of execute for checking pidfile