fixed sampling bug, and enhanced the parallelism degree
test suite clean up