make test work with optimistic or pessimistic txns