add unit test for print of learners