Add test for `path` extraction error.
Merge pull request #7 from FWeinb/add-test

Test throw if `path` can't be found in `obj`