Fix TestLanguagePack tests by mocking only when necessary

(test failures following safe_signals removal)