update-ref: test handling large transactions properly