Replace helper functions with macros to make QVERIFY/QCOMPARE work
QVERIFY and QCOMPARE must always be "run" in the actual test function
because on error they simply return. If used in a helper function then
the helper function returns on failure but the execution of the test
function continues. This caused many tests to fail silently and other
tests to crash.