refactoring of UIA tests and unit tests