Fix issues with poorly constructed junit test transactions.