removed Transaction.clear and improve coverage