Constructing Tests and Grading