Implemented Core Heartbeat and added tests