Fixed issue #32 and implemented RMI test framework