added tests for search by tag functionality