Tags stored in XML are now be updated correctly

Tags were tested for duplicate title even if this was undesirable. Also changed tests to cover this scenario.