helper function for tests checks for needle (string) in haystack (slice)
fromFile now uses a poll endpoint to emit a line at a time
added break for speed
Check if a reader exists before allowing polling in fromFile
Merge pull request #460 from jacqui/fromfile-poll

fromFile block now uses a poll endpoint to emit a line at a time