Fixes failing testing ResourceFactoryProviderSpec
Fixes failing test in AuthenticationServiceSpec
Fixes tests in loginFormControllerSpec
Merge pull request #687 from swatro/master

Fixes failing tests in ResourceFactoryProviderSpec and AuthenticationServiceSpec