generate features for test set