Fixing test termination
Merge pull request #332 from zobalogh/tail-done-fix

Fixing test termination