(minor) Clean a Xcode warning of casting long to uint.
(minor) NamedValuesTest of long is a little loosen.