 
     public func boolForKey(defaultName: String) -> Bool? {
         return things[defaultName] as? Bool
+    }
+
+    public func longForKey(defaultName: String) -> Int64? {
+        let num = things[defaultName] as? NSNumber
+        if let num = num {
+            return num.longLongValue
+        }
+        return nil
     }
 
     public func stringArrayForKey(defaultName: String) -> [String]? {

        return self.prefix + key
    }

    public func setObject(value: AnyObject?, forKey defaultName: String) {
        userDefaults.setObject(value, forKey: qualifyKey(defaultName))
    }


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
