junit TicketServiceTest
fix some bugs