refactored lessons test suite for efficiency and clarity