Fixing restart unit test