Merge pull request #4 from serathius/copy-to-send

Added tests and simple interactive testing program