unit tests for proxy

Change-Id: I42d90d93b0b8c0a400f7b8a3b8d6b57999fa8a36