Fix tests xml depending on the Qt version

Unit tests get installed in different folders depending on the Qt version. This pull request generates the tests.xml and sets the binary execution path accordingly.