More XML Tag tests and fixed redundant code in XMLTag class