add util test
add tests

+ Util.mergeMaps
+ Util.resolveEndpoint