Added test method in ModelTest.