A test file extension is mostly used just for various testing files.
TEST file extension - Testing information
What is test file? How to open test files?
File type specification:
The test file extension can be used as a testing, sample, test file etc.
So it can be various data file type, simple text, programmer's source code file or anything else.