Added interfaces and simple test for RMI