Fixed type_name test