ticket:1 tests for model