Refactor is_fp_closed method after code review
Test empty stream.
Consistently name response in tests.