tests: fix qom-test leaks