Fixed upgrade tests for replicate.