Finish adding tests for all sorting functions