Write integration tests for merger
Write integration tests for merger