Test GlobalNames.
Fix warnings.