Correcting timing-sensitive unit test

Questionable how this test could ever have been as reliable as it was.  It's made a bit more robust now.