add tests for model and dao