valid-ticket? no longer calls get-ticket, but expects a ticket as input instead of a ticket id
add tests for tickets/valid-ticket?