Add stdin test
Merge pull request #413 from kevva/test

Add stdin test