add test case for mitmproxy/mitmproxy#295