Additional refactoring of the RowFilter for testability reasons
Unittest SegmentSelector