Ensure repl is done before checking final value

Ensure realtime repl is doing it's thing before making updates and wait until all changes are replicated before passing.

Realtime repl takes real time, so wait for it to finish before
calling the test done.