Added a test of valiateOutput and simplify a bit
Merge pull request #11 from pkg/100-simplify

Added a test of valiateOutput and simplify a bit