More SPM unit tests.
Add qsort unit test.