Add detach/attach sequence test