[test] add test case for Window.cookies
Merge pull request #1361 from kingFighter/cookies_api_test

[test] add test case for Window.cookies