add tests for Ticket model