Add tests for proxy

Proxy code is not tested, and for hence it reduces coverage.