fix script tests
make sure that flow.server_conn is set when script hook is called