Add test for "raises"

Didn't manage to add that test with the previous pull request. Uses your previously written test case for `throws`.