Fix #9 add integration tests

[skip ci]
Merge pull request #10 from 4-20ma/issue_9_add_integration_tests

Fix #9 add integration tests