removed bugs in tag unit tests