unit tests for updateTag and deleteTag functions