Added test for heartbeats