Safer retrieval of cookies. Fix #190.
removing storage between engine tests