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
IMO this could go way, we don't do any Qt4 build anymore for nemo stuff. Better if done in a separated commit later, just noting here.