[test] add a test case to test document.cookies for 'http', 'file' and 'app' protocol.

 See issue #1130