merge from wenjie, support banwidth test.
refine the bandwidth test