add spec for captcha code