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
Functionally, I guess that means that this test does nothing at the moment?  We should probably think about (at some point in the future) implementing a test sync plugin which merely has deterministic delays built in for all of its operations, and then generate a profile which uses that plugin for this test.  But anyway, I agree that for now it's probably of limited usefulness to do so.