Improve test_upgrade_javascript_registry