Improved filter tests by randomizing all the input parameters.