         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 main queue")
        let group = AsyncGroup()
        group.main {
            XCTAssertEqual(qos_class_self(), qos_class_main())
            expectation.fulfill()
        }
        waitForExpectations(timeout: timeMargin, handler: nil)

        for i in iterations {
            group.enter()
            Async.background {
                XCTAssertEqual(qos_class_self(), DispatchQoS.QoSClass.background.rawValue)
                expectations[i].fulfill()
                counter += 1
                group.leave()
