 
   # hook after test suite
   def after_test_suite(provider) do
-    provider
-    |> PactMockServer.write_pact_file()
+    PactMockServer.write_pact_file(provider)
 
     # shutdown mock server
   end

  def given(precondition) do
    precondition
  end
end
  end

  def mock_server_mismatches(provider) do
    provider
    |> PactMockServer.mismatches()
    |> Poison.decode!()
  end

  def mock_server_matched?(provider) do
