Add test to reproduce race condition in watchDir