Make test buildable

Added a missing QT defines. Now the test
should build.