Fix a bug in TicketsControllerTest