fix unit test for TranslatorServiceFactory