test for Corpus.transform