Finished integration test for heartbeats