Autotests: Use qInstallMessageHandler