Add proxy test
Fix handling of query parameters.