Add unit test for PYQGIS_STARTUP environment variable

- Make PyQgsAppStartup test more general and PEP8 compliant