Learning and testing