Testing cookie functionality.