Fixed bug in transaction test