add test that restarts a persistent app