added heartbeat test