Clarify the test code. Fix the error reporting so that each statement adds to the errors reported to prevent missing errors.