Moved get_qgis_app test helper to safe package. Probably we still need sentinels for it so it is not imported when no qgis is present. Further refactoring to code standards of tests.