added a integration test