adding support for node stats along with unit tests
adding support for field stats