Add more detach/attach sequence tests