fixed MongoInt to int conversion and added a test case