You should master the individual plant within one successful visit. If you still haven't gotten the herb mastery puzzle completion message, my guess is that you've missed a plant. Sometimes, a villager will 'fail' in his study of the plant and you don't notice if you've been distracted elsewhere. Try making a circuit of the plants again and make sure you've gotten them all.
_________________________
Wendy