Added update heartbeat unit tests.