Add tests for leaf.  do the right thing for returning setAttributes in
the multi case