Autorestart fix
Fixed spec tests