 
     private func GetDevice(file: StaticString = #file, line: UInt = #line) throws -> AudioDevice {
         return try XCTUnwrap(AudioDevice.lookup(by: "NullAudioDevice_UID"), "NullAudio driver is missing.", file: file, line: line)
+    }
+
+    private func ResetDefaultDevices() {
+        defaultOutputDevice?.setAsDefaultOutputDevice()
+        defaultInputDevice?.setAsDefaultInputDevice()
+        defaultSystemOutputDevice?.setAsDefaultSystemDevice()
     }
 
     private func ResetDeviceState() throws {


        XCTAssertEqual(device.name, "Null Audio Device")
        XCTAssertEqual(device.manufacturer, "Apple Inc.")
        XCTAssertEqual(device.modelUID, "NullAudioDevice_ModelUID")
        XCTAssertEqual(device.configurationApplication, "com.apple.audio.AudioMIDISetup")
        XCTAssertEqual(device.transportType, TransportType.virtual)


        XCTAssertTrue(device.setVirtualMasterVolume(0.0, direction: .playback))
        XCTAssertEqual(device.virtualMasterVolume(direction: .playback), 0.0)
        XCTAssertEqual(device.virtualMasterVolumeInDecibels(direction: .playback), -96.0)
        XCTAssertTrue(device.setVirtualMasterVolume(0.5, direction: .playback))
        XCTAssertEqual(device.virtualMasterVolume(direction: .playback), 0.5)
        XCTAssertEqual(device.virtualMasterVolumeInDecibels(direction: .playback), -70.5)

        XCTAssertTrue(device.setVirtualMasterVolume(0.0, direction: .recording))
        XCTAssertEqual(device.virtualMasterVolume(direction: .recording), 0.0)
        XCTAssertEqual(device.virtualMasterVolumeInDecibels(direction: .recording), -96.0)
        XCTAssertTrue(device.setVirtualMasterVolume(0.5, direction: .recording))
        XCTAssertEqual(device.virtualMasterVolume(direction: .recording), 0.5)
        XCTAssertEqual(device.virtualMasterVolumeInDecibels(direction: .recording), -70.5)
    }

    func testVirtualMasterBalance() throws {
