added getStats unit tests