add test for ticket creation