Merge "Add test for mac learning"