updated test with different heartbeat frequencies