Made ticket backend tests more robust.