test KeyError and AttributeError on bad lookups
Merge pull request #58 from dannyroberts/test-errors

test KeyError and AttributeError on bad lookups