dom: add tests for getFocused method