Simple function test of #learn method