How do I limit the number of times a user can take a test or lesson?