Testing machine learning concepts