test file extension recognition