Add unit tests for headless environments, web workers, and module declarations. This is also testable in the browser.