Fixed jasmine test with mock cookies