adding node statistics and accoding tests