Fix tests, fix doc build, fix one bug

Not all test cases would be possible to bring in sync with current implementation with just a reasonable effort - see uses of QEXPECT_FAIL
Previous implementation using just IPHeartbeat should work, for the new implementation using backgroundActivities we need to create new test case and probably use ifdefs here as well to accommodate both implementations.