Tests for _filterByTag.