Refactor run_filter() to pass a dictionary of attributes
Split filter unit test into individual filter tests