More test improvements and a new get_ticket_note API method.