Fix languageServiceHost test
Fix PreferencesManager  test