adding test coverage, making filter configurable