healthy: add Heartbeat func

move the test to integration.