small refactoring
better tests for getting all tags and filtering all tags. some fixes go together