better error reporting for form tests