Merge pull request #386 from wpreul/feature/tests

Refactoring tests to use ephemeral port
Adding payload interruption tests