more stringent tests for class-info, ensure we have def, label, id etc. Issue #294