adding replica read/writes to history
fixing tests