Various test improvements.
Ticket adding.