update Table._free to use autocommit check
Reset autocommit flag after test.