Allow overriding of heartbeat interval for tests