Use `error` test function when testing for errors

This will give better error messages when tests are failing
Merge pull request #48 from watson/errors

Use `error` test function when testing for errors