Testing cookie logic.