Fixed test cases after I changed the error reporting