Wrote ScorePackageManager.rewrite_metadata_module() tests.