tags controller unit tests
updated tag controller, might affect unit tests for deleteTag and updateTag functions
cleaned up dealing with tags
merging updated updateTag and deleteTag functions