New functionality to test cookies