scoring plugin: promote function and test code for classifier