test TurnTicket.java and some code formatting