SERVER-8046 Some additional mutable tests
SERVER-8046 Add an easy way to get an invalid element for a doc
SERVER-8046 Add a new hasChildren method is faster than counting