ActiveRecord: strange tree behavior???

hi,

can someone help me with understanding, why i can't get my
set_sub_tree method to run correctly and what to do to make it work?

when i run the testcase below i get