Setting RMI part for the client and test for the connection