         let lamp = Accessory.Lightbulb(info: .init(name: "Night stand left", serialNumber: "00057", manufacturer: "Bouke"), isDimmable: true)
         let device = Device(setupCode: "123-44-321", storage: MemoryStorage(), accessory: lamp)
         let application = characteristics(device: device)
+        let testQueue = DispatchQueue(label: "TestQueue")
 
         lamp.lightbulb.powerState.value = false
         lamp.lightbulb.brightness?.value = 0
 
         // turn lamp on
-        do {
+        testQueue.async {
             let jsonObject: [String: [[String: Any]]] = [
                 "characteristics": [
                     [


        // "422 Unprocessable Entity" for a well-formed request that contains
        // invalid parameters.
        do {
            let jsonObject: [String: [[String: Any]]] = [
                "characteristics": [
                    [

        }

        // trying to read write only access
        testQueue.async {
            let iid = lightsensor.info.identify.iid
            let aid = lightsensor.aid
            let response = application(MockContext(), HTTPRequest(uri: "/characteristics?id=\(aid).\(iid)"))
