Added database transaction tests.