Added several asserts to the learner