Cache server objects

Also added the tests for server object caching. However, they fail because of an error thrown from Mongo driver.
Client object cache
args instead of arguments