Added tests for writeToJsonFile config

I would also like this config to be added. Wrote the tests.
Disclaimer, I'm new to both CoffeeScript and Mocha. Hope it helps to update your PR in karma-coverage.