New test function and new test sort

6 function test and 1 sort test