fix for broken parser tests due to addition of error parameter