dom: add tests for "containsFocus" method