 
     # singular/plural
     test_type_counts = format_test_type_counts(config)
-    failure_pl = pluralize(config.failures_counter, "failure", "failures")
+    failure_pl = pluralize(config.failure_counter, "failure", "failures")
 
     message =
-      "#{test_type_counts}#{config.failures_counter} #{failure_pl}"
+      "#{test_type_counts}#{config.failure_counter} #{failure_pl}"
       |> if_true(config.skipped_counter > 0, & &1 <> ", #{config.skipped_counter} skipped")
-      |> if_true(config.invalids_counter > 0, & &1 <> ", #{config.invalids_counter} invalid")
+      |> if_true(config.invalid_counter > 0, & &1 <> ", #{config.invalid_counter} invalid")
 
     cond do
-      config.failures_counter > 0 -> IO.puts failure(message, config)
-      config.invalids_counter > 0 -> IO.puts invalid(message, config)
+      config.failure_counter > 0 -> IO.puts failure(message, config)
+      config.invalid_counter > 0 -> IO.puts invalid(message, config)
       true                        -> IO.puts success(message, config)
     end
 

  end

  def handle_event({:case_finished, %ExUnit.TestCase{state: {:failed, failures}} = test_case}, config) do
    formatted = format_test_case_failure(test_case, failures, config.failures_counter + 1,
                                         config.width, &formatter(&1, &2, config))
    print_failure(formatted, config)
    {:ok, %{config | failures_counter: config.failures_counter + 1}}
  end

  ## Tracing

    else
      IO.write success(".", config)
    end
    {:ok, %{config | test_counter: update_test_counter(config.test_counter, test)}}
  end

  def handle_event({:test_finished, %ExUnit.Test{state: {:skip, _}} = test}, config) do
    if config.trace, do: IO.puts trace_test_skip(test)
    {:ok, %{config | test_counter: update_test_counter(config.test_counter, test),
                     skipped_counter: config.skipped_counter + 1}}
  end

