fix some bugs in test
modify function name