cater for running tests from another directory than tests

applying existing pattern to newly added test_testcase_ordering as well
https://code.djangoproject.com/ticket/20449