changed test of createTicket to not use assertNotNull