Fix index fluctuation during save, ordering of getChildren
Tests for getChildren, fixed save tests