Added test for WorkerFactory
Improved test coverage of JsonParser.
Various improvements to test suite, added some tests for Worker.