Tests for resource safety of pipe
Merge pull request #148 from radekm/resource-safety-pipe-tests

Tests for resource safety of pipe