Checks and test for repeated element names