Add tests for ticket model.