Add standard input test for GNL

if fd <= 0 when checking errors instead of fd < 0
Merge pull request #54 from iadjedj/v2

Add standard input test for GNL