The purpose of the tests is threefold:
To add a sense of responsibility and seriousness to our learning.
To encourage thorough review of the material.
There is nothing like the feeling of having mastered a section of Torah, and having your knowledge put to the test.