Added support for rollbacks and tests.