Add transaction and network tests and fixes to make them work.