modifying tests to sleep until event source is closed instead of a fixed interval