modified testRMI