Check for and count errors
Add a command-line version of the stress tester