Better test for .read() method on a file object.