Adding three tests to class.jetpack for sort_modules

This commit adds three tests covering the sort_modules class method,
which is both simple and would cause trouble if unintentionally
changed. I did not include a @since tag as I do not know when the
method was introduced. If the @since tag is important, I'd be happy to
figure out when it was introduced and submit an update to this pull request.