test cookie check