1s timeout added to all test cases so no test suite can be blocked by a
bug.
fixed the two failing tests
completed TokenFrequencyMatrixTest and moved the test on matrix builder
to dedicated test case.