add some test functions, and find that cub library is totally asynchronized. there is a problem in program to be find and correct.