Add format parameter to the filter and test cases.