Added Test case for tag_sorter etc

Added test case for tag sorter and add tag