In class SsoLoginRequest there is getApiHostname stub method that return always https://login.salesforce.com. For the test environment, the login failed.