Fix unit test for Qt4 build