[test] add test case for Window.cookies