add tests for proxy