compelete api test coverage. fix bug in Ticket creation