Test that one can define a filter taking a CustomValue as an argument.