fixed errors in Errors tests