tests for restart and restart with interval