Integrity error tests

This raises an `IntegrityError`.