Testing and learning