Add tests for error handling of indexing invalid docs.
Merge pull request #128 from mapbox/index-update-tests

Add tests for error handling of indexing invalid docs.