Test the reachability of a device