Added test for the frequency method inside the TdIdf class