Refactored tests for the CensorHook class

This pull request try to make more accurate tests for the `CensorHook` class.

The equivalent censored contents and number of letters are tested.