add peerinfo function to proxyinfo.
add proxy info from string test case and peer to proxy info functions.