Additional coverage.

Managed to catch a bug where I was throwing an incidental AttributeError rather than the one I expected.