     func testStaticData() {
         let key = DefaultsKey<Data>("data")
         XCTAssert(Defaults[key] == Data())
-        let data = "foobar".data(using: String.Encoding.utf8)!
+        let data = "foobar".data(using: .utf8)!
         Defaults[key] = data
         XCTAssert(Defaults[key] == data)
     }

        Defaults[key] = 10
        XCTAssert(Defaults[key] as? Int == 10)
        Defaults[key] = Date.distantPast
        XCTAssert(Defaults[key] as? Date == Date.distantPast)
    }
    
    func testStaticNSObject() {

        Defaults[key] = ["foo": "bar", "bar": 123, "baz": Data()]
        XCTAssert(Defaults[key] as NSDictionary == ["foo": "bar", "bar": 123, "baz": Data()])
        Defaults[key]["lol"] = Date.distantFuture
        XCTAssert(Defaults[key]["lol"] as! Date == .distantFuture)
        Defaults[key]["lol"] = nil
        Defaults[key]["baz"] = nil
        XCTAssert(Defaults[key] as NSDictionary == ["foo": "bar", "bar": 123])
