test of ticket model