Add upgrade step for removing character counter code

- Unregister CSS and JS resources associated and cook them again
- Remove control panel records from registry
- Refactor test to make them easier to understand