Use separate configuration class for tests
Adjust test to reflect login API change