more concise definition for test file recognition