Committing the Jasmine test for the cookie function