refactored disconnect/connect in ustackd test
make the stats test more resilient