Add tests for #setParent()