tests: Fix how qom-test is run