Fixup test_extend not to use internal attributes