new function to create weka for test set