Detecting and avoiding bucket imbalance in A/B tests