     it 'setSort', ->
       # Test for setSort. Can be setted object, array and string types.
       client = new doofinder.Client mock.request.hashid, mock.request.api_key
-      mockSort =
-        Object:
-          price: "asc"
-          title: "desc"
-          description: "asc"
-        Array: [("title": "asc"), ("description": "desc")]
-        String: "price"
 
       # Test sort with array type
       # sort: [{price: 'asc'}, {brand: 'desc'}] -> sort[0][price]=asc&sort[1][brand]=desc
-      client.setSort(mockSort.Array)
+      client.setSort(mock.sort.Array)
       querystring = client.makeQueryString()
       querystring.should.be.equal 'hashid=ffffffffffffffffffffffffffffffff&sort%5B0%5D%5Btitle%5D=asc&sort%5B1%5D%5Bdescription%5D=desc'
 
       # Test sort with object type
       # sort: {price: 'asc'} -> sort[price]=asc
-      client.setSort(mockSort.Object)
+      client.setSort(mock.sort.Object)
       querystring = client.makeQueryString()
       querystring.should.be.equal 'hashid=ffffffffffffffffffffffffffffffff&sort%5Bprice%5D=asc&sort%5Btitle%5D=desc&sort%5Bdescription%5D=asc'
 
       # Test with string type
       # sort: price -> sort=price
-      client.setSort(mockSort.String)
+      client.setSort(mock.sort.String)
       querystring = client.makeQueryString()
       querystring.should.be.equal 'hashid=ffffffffffffffffffffffffffffffff&sort=price'
 

        res.should.to.be.deep.equal response
        done()

    it 'options', ->
      a = 1


      query = query1 + ' ' + query2 + ' ' + query3 + ' ' + query4 + ' ' + query5
      foo = () -> client._sanitizeQuery(query, null)
      expect(foo).to.throw 'Maximum word length exceeded: 55.'

    it 'search with no type', (done) ->
      response =
