(sort) improved the tests