Bug fixes for the Worker code and for the JIT support.  Test case for the Worker code