fix(tests): properly closing server in config test