add integration test
Merge pull request #6 from devstarter/issue2

add unit test