Added test for heartbeat