Updated tests, added local rewrite (not rewrite with proxy) test. In local mode, the body is not transferred.