this test was to ensure data integrity and enforce the distinction between a file-like object and a stream-like object. i don't think it should be removed.