Update to the latest grunt-mocha-cov
Test ajax error handling
Check complete emit as part of existing ajax tests
Use deep cloning rather than reparse in ajax cache
Use setImmediate rather than nextTick
Reset ajax cache during tests
Optimize and add test coverage for ajax.toJSON