Refactored tests for the CensorHook class

Try to make more accurate tests.
The equivalent censored contents and number of letters are tested.