fixed codegen tests (except RemoveParent) (#190)