added tests for non-trusted proxies