fix unittest in 2.6

- with assertRaises is not supported in 2.6
add parent to BaseObj
rename Field to FieldMeta