Move the filtering logic of '_tags_for' function into a dedicated 'filter_tags' function.
lastgenre: add tests functions