Tests for file-like object use.