Cleanup unused redundant code
TestMode is never used, and can also be set via QStandardPaths::setTestModeEnabled()