Added tests for RemoteDaemon