Added unit test for smem isupport with learning on.