Testing of public school students in a New York City suburb was canceled on Monday after someone anonymously posted several of the exams on a public website, officials said.