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

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

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