some tests for sorting