Made some changes to how the mongo view model operates, and fixed tests.