Refactored some of tags tests.