mockup setLearned function, nscoding tests