more tests and add parent_id migration