new_contents: """Test the ElasticSearch module"""
  
  from __future__ import unicode_literals
  from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from future import standard_library
  standard_library.install_aliases()
  
  from pytest import raises
  from gobble.search import Contributors, BadSearchKey
  
  
  def test_validate_bad_query_raises_exception():
      with raises(BadSearchKey):
          Contributors().validate_query(foo='bar')
  
  
  def test_validate_good_query_adds_double_quotes():
      original = {'name': 'mickey mouse'}
      validated = {'name': '"mickey mouse"'}
      assert Contributors().validate_query(**original) == validated
  
subject: Add tests for ElasticSearch classes.