Added test for a bug and also new MongoYii