BUG: Fixed bug in bin_1d testing method