Add tests for structured clone for workers