Not every programming class needs to, and a software engineering curriculum (which isn't the same thing as computer science) ought to include coursework <i>dedicated</i> to testing, but since its a key skill in constructing correct programs, introductory courses ought to include some testing (and some current ones, e.g., the MITx 6.002x class now running on EdX) do.