Add required parameter to WaitUntilEmpty

Your current test would pass even if there was a code typo like 1/0 at line 263.