         let expectation = self.expectationWithDescription("Add login")
         let login2 = Login.createWithHostname("hostname1", username: "username2", password: "password2")
 
-        addLogin(login)() >>>
-            addLogin(login2) >>>
+        addLogin(login) >>>
+            addLoginCurried(login2) >>>
             getLoginsFor(login.protectionSpace, expected: [login2, login]) >>>
-            done(expectation)
+            done(login.protectionSpace, expectation: expectation)
 
         waitForExpectationsWithTimeout(10.0, handler: nil)
     }

    func testRemoveLogin() {
        let expectation = self.expectationWithDescription("Remove login")

        addLogin(login)() >>>
            removeLogin(login) >>>
            getLoginsFor(login.protectionSpace, expected: []) >>>
            done(expectation)

        waitForExpectationsWithTimeout(10.0, handler: nil)
    }

    }

    func testAddLogin() {
        log.debug("Created \(self.login)")
        let expectation = self.expectationWithDescription("Add login")

        addLogin(login) >>>
            getLoginsFor(login.protectionSpace, expected: [login]) >>>
            done(login.protectionSpace, expectation: expectation)

        waitForExpectationsWithTimeout(10.0, handler: nil)
    }
