test written and passed for searching tags