add schema upgrade tests
add some replica tests