fixes tests by replacing JSON.toString with JSON.stringify
adds support for multi-line content
Merge pull request #4 from mrmoses/master

fixes tests and adds support for multi-line content