testdevice : fix check on device deletion
rest : add http method in rest logs