add code to test a classifier accuracy