Add a couple unit tests that should take long enough that heartbeats will actually happen.
Tweak amount of sleep in new unit test