Improve testing of stateful tickets