Fixed errors_test to work with new matrix inputs