fix tests for qt4