fixed slow replicaton test + invalid usage of session