Module tests do not work from file. They must be loaded via http or the browser SOP check and caching must be disabled :-(.
Consider npx http-server -c-1 web server with no caching or run the tests from bundle.