Change rmake and doc-test to support TESTNAME

Closes #11288
Closes #11222