cookie basic unit test