add #filter_category with tests