Adding test for sr_stat and some debugging