test cookie assertions