Fix rubocop warning 'TrailingComma' in average_spec