added integration test
 -finish and ran successfully integration test