Add missing ticket functional tests

I add the missing functional tests for tickets, such as:

- transition from stage closed to resubmitted
- edit tickets successfully or with errors
- delete tickets