Add more finer-grained tests for the heartbeat monitor