Added unit tests for DOM utility class