     uuid = assert_query_creation('{"query" : {"term" : {"field1" : "value1"}}}')["query_id"]
     uuid2 = assert_query_creation('{"query" : {"term" : {"field1" : "value2"}}}')["query_id"]
     Funnel.Es.refresh
-    {status, response} = Funnel.Es.find("token")
-    {:ok, response} = JSEX.decode response
-    assert status == 200
+    response = assert_query_find
     assert Enum.count(response) == 2
     Funnel.Es.unregister("funnel", "token", uuid)
     Funnel.Es.unregister("funnel", "token", uuid2)

    {:ok, body} = JSEX.decode response
    assert status == 200
    body
  end

  test "returns a 201 on query creation" do

    uuid = assert_query_creation('{"query" : {"term" : {"field1" : "value1"}}}', "index1")["query_id"]
    uuid2 = assert_query_creation('{"query" : {"term" : {"field1" : "value2"}}}', "index2")["query_id"]
    Funnel.Es.refresh
    response = assert_query_find("index1")
    assert Enum.count(response) == 1
    response = assert_query_find("index2")
    assert Enum.count(response) == 1
    Funnel.Es.unregister("index1", "token", uuid)
    Funnel.Es.unregister("index2", "token", uuid2)
