refactor  the lessonplans controller and add lessonplans  integration test.