Add test for nodedev_detach_reattach

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>