Unit test for TicketPurchaseFactory