Added test on sorting methods.