Register merge operation, add integration test