Add error count variable to tests for failure
Add error count variable to tests for failure

Travis ci determines failure of tests via a programs return code. We
return the number of errors to account for this.

Tiehuis/mptet