modify rspec for changing cmd & add exception of stat_controller