More idiomatic assertRaises check
Fix a typo