filters: revised binning_test to be more robust