Added login service factory test.