             XCTAssertNil(error, "\(error)")
         }
 
-        let afterFirstSync = now()
+        let afterFirstSync = NSDate.now()
 
         // Store a fresh crypto/keys, with the same default key, one identical collection key, and one changed collection key.
         let freshCryptoKeys = Keys.init(defaultBundle: cryptoKeys.defaultBundle)

            XCTAssertNil(error, "\(error)")
        }

        let afterFirstSync = now()

        // Now, run through the state machine again.  Nothing's changed remotely, so we should advance quickly.
        let secondExpectation = expectationWithDescription("Waiting on value.")

            XCTAssertNil(error, "\(error)")
        }

        let afterThirdSync = NSDate.now()

        // Now store a random crypto/keys, with a different default key (and no bulk keys).
        let randomCryptoKeys = Keys.random()
