Hackaround to unit test cookie store.