refactoring lessonplans_controller test