Added test of record commit/rollback and fixed bugs.