The effect of taking a midterm is to assess learning