adding support for stats along with unit tests
adding status operation and unit tests