issue #4861, refactor UIFocusTest, simplify code