Add lesson test and validation logic