add test and capture io helper
Merge pull request #5 from Joe-noh/more-test

add test and capture io helper