fixed BadSignature test

The Travis build is currently failing because of a badly written test in tests/test_proxy.py, which raises a raw exception outside of the nosetest framework.  This patch fixes that problem, which should enable other necessary pull requests.