refactoring with ReSharper; changes to UIA unit tests