Test multiple replicas
fix an issue with the shift size