refactoring of a part of UIA unit tests