Fix ticket API regression in tests introduced by r6538.
The fix is quite crude, and btw, I think we should actually update the ticket's resource while doing an `insert()`.
Authored by: cboos 2008-02-20
Parent: [r6581]
Child: [r6583]