fix tests
add automatic stop for leaked rpc servers
prevent running existing RPC server again