the test script for binning works fine