Test SharedWorker script error handling functionality. Should print a series of PASS messages, followed with DONE.