refactor for lesson id - init func/test