Fixed bug in RemoteDeviceDBTest