tester: Add support for expected-fail, user-input, and benchmarks.
Count the errors for the states listed and add running totals.
Kill the test process if the test state is user-input or benchmark.