Changed test_runner imports to name objects imported from test.runner.
Fixed #23742 -- Added an option to reverse tests order.

This is useful for debugging side-effects affecting tests that
are usually executed before a given test. Full suite and pair
tests sort cases more or less deterministically, thus some test
cross-dependencies are easier to reveal by reversing the order.