Fixed #13629 : Speed up and clean up ticket tests