added an integration test