fix tests when throwing errors now