Test Worker/SharedWorker constructors