unit tests for merge_bins, overflow, and underflow