adding tests
fixing xmldom hasAttributes bug