```ruby
require 'test_helper'

describe AudioFileTemplate do

  let(:audio_file_template) { create(:audio_file_template) }

  it 'has a table defined' do
    AudioFileTemplate.table_name.must_equal 'audio_file_templates'
  end

  it 'has a version template' do
    audio_file_template.audio_version_template.wont_be_nil
  end
end
```

Add a test for audio file template
user
```ruby
require 'test_helper'

describe AudioFileTemplate do

  let(:audio_file_template) { create(:audio_file_template) }
  let(:audio_file) { create(:audio_file, label: 'Main Segment', position: 1) }

  it 'has a table defined' do
    AudioFileTemplate.table_name.must_equal 'audio_file_templates'
  end

  it 'has a version template' do
    audio_file_template.audio_version_template.wont_be_nil
  end

  it 'can validate a file against itself' do
    audio_file_template.validate_audio_file_lengths(audio_file).must_include 'must be between'
  end
end
```
assistant