Fix the test code according to new model design