merge from wenjie, the bandwidth test feature.