Refactor import_filters tests