Removed duplicated code in tests
Added stub method for the ticket resource check