Add test to check tf-idf

Just added to test the functionality of the tf-idf method provided and
used by the Richness of Information metric. In a comment I explain the
chosen expected value. I will probably add more tests in the future.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>