[test]fix bugs of useragentapp and pathescape test cases

fix the bugs of user-agent-app and path-escape on windows.