Made restart-after-reload test more robust.