Ensure the test resolver uses cached modules.
Add some unit tests for #terminalExportSpecifier.