Test for OptionalParametersFilter caching functionality