fixed heartbeat test