         let thermostat = Accessory.Thermostat(info: .init(name: "Thermostat", serialNumber: "00058", manufacturer: "Bouke"))
         let device = Device(setupCode: "123-44-321", storage: MemoryStorage(), accessory: thermostat)
         let application = characteristics(device: device)
+        let testQueue = DispatchQueue(label: "TestQueue")
 
         thermostat.thermostat.currentHeatingCoolingState.value = .off
         thermostat.thermostat.currentTemperature.value = 18

            XCTAssertEqual(nameCharacteristic["value"] as? String, "Night stand left")
        }

        do {
            let response = application(MockContext(), HTTPRequest(uri: "/characteristics?id=\(lamp.aid).\(lamp.info.name.iid),\(lamp.aid).\(lamp.lightbulb.brightness!.iid)&meta=1&perms=1&type=1&ev=1"))
            guard let jsonObject = (try? JSONSerialization.jsonObject(with: response.body.data ?? Data(), options: [])) as? [String: [[String: Any]]] else {
                return XCTFail("Could not decode")

        }

        // turn off
        testQueue.async {
            let jsonObject: [String: [[String: Any]]] = [
                "characteristics": [
                    [
