Added integration test - first draft, not complete.