fixes tests by replacing JSON.toString with JSON.stringify
adds support for multi-line content