Extract test feature for removing transaction into new file