 
 public class MockProfilePrefs : ProfilePrefs {
     var things: NSMutableDictionary = NSMutableDictionary()
+
+    public func setLong(value: Int64, forKey defaultName: String) {
+        setObject(NSNumber(longLong: value), forKey: defaultName)
+    }
 
     public func setObject(value: AnyObject?, forKey defaultName: String) {
         things[defaultName] = value


    public func boolForKey(defaultName: String) -> Bool? {
        return things[defaultName] as? Bool
    }

    public func stringArrayForKey(defaultName: String) -> [String]? {

        // distinguish between false and non-existent keys, so use objectForKey
        // and cast the result instead.
        return userDefaults.objectForKey(qualifyKey(defaultName)) as? Bool
    }

    public func longForKey(defaultName: String) -> Int64? {
        let num = userDefaults.objectForKey(qualifyKey(defaultName)) as? NSNumber
        if let num = num {
            return num.longLongValue
        }
        return nil
    }

    public func stringArrayForKey(defaultName: String) -> [String]? {
