Fix/check implements

This PR fixes issue #191
Use `assertRaises`.