Updated tests to use statement context from within transaction.