update to allow for replace using timestamps with a test. fixed issue 5797