Refactor QMTest support code to be able to move it to other projects
After !1605 (merged), we do not need QMTest support anymore, but it is kept for downstream projects that rely on it.
To be able to address #333 we need to be able to extract the QMTest support code from Gaudi to copy or move it to other projects.