   end
 
   describe "close_span/2" do
-    setup do
-      [pid: Process.whereis(WrappedNif)]
-    end
-
-    setup :create_root_span
+    setup :create_root_span_in_other_process
 
     test "returns :ok", %{span: span, pid: pid} do
       assert Tracer.close_span(span, pid) == :ok

  defp create_child_span(%{span: span}) do
    [span: Tracer.create_span("child", span), parent: span]
  end
end

  end

  describe "create_span/3, when passing a pid" do
    setup :create_root_span_in_other_process

    test "returns a span", %{span: span} do
      assert %Span{} = span
