Remove broken setAllowedTags
Improve test coverage