a fix to Test-UiaControlState/Wait-UiaControlState cmdlets and more UIA unit tests