Make those test targets play nicely both with make and ninja
Reviewers: bensi, franckarrecot, dfaure, mlaurent
Differential Revision: https://phabricator.kde.org/D865