Test for getType; use constant type name in getType().