Remove unused imports
Add test case about restarting a suspended app
Finish RestartApp deployment step successfully if instances==0

Fixes #919.