fix the method name and add a test for the Heartbeat.