cast replication factors to ints and update tests