fix bugs about stress testing.
merge master's testing bug fix