Cookie is defined only in acc.tests. What will be not in tests? mode will be undefined?