Refactored to remove redundant commands, and include a setUp method to encapsulate setting up the proxy before testing. Wayyyy too big a commit :(