Fixes failing testing ResourceFactoryProviderSpec
Fixes failing test in AuthenticationServiceSpec