add listval_filter method and corresponding tests