Fix my refactor error and add some debug

This test was failing because I refactored some common functions into repl_util and didn't catch the replication_upgrade changes that were needed. It urks me that erlang can't detect that we're calling a fully qualified module:function that doesn't exist.

Anyhow, this test will have a much better chance of passing now.