Add tests for PathServlet text rendering

Fix a bug where we were setting the content type to text/plain even
though we meant not to.

Change-Id: I440b57aac035a4986846d2992d8089cf72557624
3 files changed