fix counting of nodes in test model, fixed rollback when called for with closed transaction