Issue #240 ,added mmodel tests
Issue #240 , added controller tests