Refactored order_with_respect_to tests Refs #18586

It would be better to keep this as a comment instead of a docstring.