tests: fix "make check-qtest" for modular builds