Implemented autoseting owner id
Added new tests for auto setting owner id to it's childs