         let expectation = self.expectation(description: "Expected on user interactive queue")
         let group = AsyncGroup()
         group.userInteractive {
-            XCTAssertEqual(qos_class_self(), QOS_CLASS_USER_INTERACTIVE)
+            XCTAssertEqual(qos_class_self(), DispatchQoS.QoSClass.userInteractive.rawValue)
             expectation.fulfill()
         }
         waitForExpectations(timeout: timeMargin, handler: nil)

        let expectation = self.expectation(description: "Expected on background queue")
        let group = AsyncGroup()
        group.background {
            XCTAssertEqual(qos_class_self(), QOS_CLASS_BACKGROUND)
            expectation.fulfill()
        }
        waitForExpectations(timeout: timeMargin, handler: nil)

        var complete = false
        let group = AsyncGroup()
        group.background {
            XCTAssertEqual(qos_class_self(), DispatchQoS.QoSClass.background.rawValue)
            complete = true
        }
        group.wait(seconds: timeMargin)
