Migrate tests to qmake