add test for restart with immediate true