Added another test that waits indefinitely for a latch