Maybe this should get the document immediately after File > New (as in the first test), and then here assert that it's still the current doc.  If the impl ever changed such that the old untitled doc hung around and simply got swapped for a new non-untitled object, lots of stuff would break!