unit test: script_with_cookie