refactored get operation to query the document inside the remote operation.
refactored tests because get operation got changed.