remove file_stream method
Added test cases