Add test for term-frequencies