Correction for #12800.

As pointed out by @whiteinge, test=True should result in result=None.
Fixed the descriptions of the methods as well.

This implementation now follows the logic of file.absent().