Fix tests for Qt5

Conflicts:
	tests/CMakeLists.txt