Add unit test for `apply_row_based_filter`.