Selection sorting and tests for it is fixed