Mocking Worker's postMessage