ticket:1 tests for model and model