tests: Fixed segfault in srw_test

Don't destroy server node anywhere except atexit