make cookies work and have a realistic testing environment