         waitForExpectations(timeout: timeout)
     }
     
-    func testLoginHasErrorResultWithEmailNotFound() {
+    func testLoginHasErrorResultWithUserNotFound() {
         let access = RemoteDatabaseAccessMock()
         let database = RemoteDatabaseMock()
         let service = AuthRemoteService(access: access, database: database)!

        let expectation2 = expectation(description: "Existing email and empty password")
        service.login(email: "me@me.com", password: "") { result in
            switch result {
            case .fail(let info):
                switch info {
                case .wrongPassword : break
                default : XCTFail("Error 'info' is not of type '.wrongPassword'")
                }
                
            default:
                XCTFail("'result' is not of type '.fail'")
            }
            expectation2.fulfill()
        }
        
        let expectation3 = expectation(description: "Existing email and mismatched password")
        service.login(email: "me@me.com", password: "kkJDKFj213898pr") { result in
            switch result {
            case .fail(let info):
                switch info {
                case .wrongPassword : break
                default : XCTFail("Error 'info' is not of type '.wrongPassword'")
                }
                
            default:
                XCTFail("'result' is not of type '.fail'")
            }
            expectation3.fulfill()
        }

        access.expectedErrorCode = .errorCodeUserNotFound
        
        let expectation1 = expectation(description: "Valid email but non-existing and non-empty password")
        service.login(email: "you@you.com", password: "123456789abcde") { result in
            switch result {
            case .fail(let info) where info == .userNotFound:
                break
                
            default:
                XCTFail()
            }
            expectation1.fulfill()
        }
