Fixed sample test case always failing.
Replaced all raises statements in tests to assert.throws.