Update tests.js

* Change formatting to use 2 spaces instead of 4 tabs
* Use updated 'raw' and 'json' options