add and test rmi