Add unique_tags configuration and processing

* configuration changes are complete
* behaviors of setTag is not clearly defined
* tests need better coverage of behaviors