Fix decode for case when stdin is not present for example when running under jenkins
Added more unit tests
Merge pull request #278 from vladistan/master

Fix decode for case when stdin is not present.

Thanks @vladistan.
Merge pull request #279 from vladistan/more_unit_tests

Add unit tests for argument parsing.