fixes to elements without paterns, improvements to UIA unit tests