add test for restart