SetTransactionTest remove network usage and fix NPEs related to serialization