Correct some errors in tests due to indeterminate interleving of async logging
fix TestProcessCheckDelay test