adds compatibility tests to addDef()