Add a test case. Note the important setTimeout.