Simple tests for sortArray