     end
 
     assert Regex.match?(@header_regex, output)
-    assert Regex.match?(@sleep_benchmark_regex, output)
+    assert Regex.match?(body_regex("Sleeps"), output)
   end
 
   test "integration multiple funs in .run" do


      [header, benchmark_stats] = result
      assert Regex.match?(@header_regex, header)
      assert Regex.match?(@sleep_benchmark_regex, benchmark_stats)
    end
  end


  doctest Benchee

  @header_regex         ~r/^Name.+ips.+average.+deviation$/m

  test "integration step by step" do
    capture_io fn ->
      result =
