fix rmi test