Improved error reporting for parser tests