Add unit test of ingredient and ingredient family dao.
Add some unit test.
Refactor class in models.