fix heartbeat test