Add test for whether mongo model is defined