Heartbeat unit testing