Test transaction API should have optional opts