Respect mounted path specified in endpoint config.

Fixes #202
Clean up response object in tests