Add testing code and fix HYField::Load