Test for autorestart and failed autorestart