Implement heartbeat and add test case