simplify function test case
check in current code, too much memory consumed, will revert to the original design