Correction for exists method.
Now, it responds that a doc exists when id contains characters to url encode. Like as the get method.
adding a test for exists method
Merge pull request #299 from dblugeon/correction-exists

Correction exists