get basename of test if in directory