qt, tests: Don't use internal API