Added transactional tests.
Added support for datastore stats.