implementation of MongoObjectDb::rate() method
added test function to validate ObjectDb::rate() method