Added tests, fixed options handling in get(), deleteDocument()

Added tests, fixed options handling in get(), deleteDocument(), cleaned up spacing, did some linting.

There's a pending test in the core search canonical.  That function only allows the options object to be passed in if no objName is passed in.