weka: improved toString method and fixed issue in test mode.