Diffusion Approximations for a Class of Sequential Testing Problems