Added unit test for tags/categories and trimmed whitespace from grouped