Fixed heartbeat in test api