Add same-tick commit test
Fix same-tick Transaction.commit()
Add debugIf test helper