testInDir does not escape test name

For example "read/write test" would lead to an invalid directory operation being attempted.