@dbu, I see I am wrong. The ``\BadMethodCallException`` for the getSize method still works. So the size is also returned when the document is unpersisted. Also I checked if we missed something but I cannot find it. I will do a little PR to add a test for the ``File::getSize`` method, then we can be more sure it stays working as it is expected.