tests refactoring - extract common part to helper function
fail for file stream configured not to read files
Merge pull request #14 from jrmichael/master

Emit error for not read files