FIXUP: Add fetchAndReplace unit tests