Use genObjectName, it's simpler.
Unbreak TestErrorStuff example.