improve TestFile pattern