Auto-reset session in tests.
Support auto-committing the transaction.
Merge pull request #3 from 4teamwork/jone-autocommit

Auto-reset session in tests.