Clean up spec.
Document mixin.
Add error handling.
Fix spec for new error type.