Fix exception type.
Need to export OperationFailedError exception.
Add self->tox check to prevent segfault.
Fix typo.
More test coverage.