added test casses for commit/snapshot/rollback
closes #3