error tests throw if the code does not error.  removed extraneous argument from error tests