- added a testcase for localhost posting, clean up temp dir creation, removed some console.log statements