Remove dead code in model.c
Add another test case in model.c