Added DomUtilTest. Clean up imports.

Added a test that disproves #54.

Closes #54
Merge branch 'clean-up' into feature/328-do-not-open-external-url