Testing that empty() removes child references and updating docs