Allowed test from refs #23612 to be run from a directory other than tests.