added test for tf-idf code; hints at general testing for other macros