Fixed some findbugs errors in ModelTest.