Unit test for Ticket class