CloseHandle doesn't wait for the thread to finish, so this has no effect. In any case there doesn't seem to be any need to wait in those tests.
My bad. There was something hokey with the tests, moving the CloseHandle made them pass consistently. After changing the implementation I can't repeat it. I'll resend when I get some time this weekend.
Cheers Jon