Fake file stream for testing