split the test function
Merge pull request #7 from WenyingLiu/master

split the test function