Added test for detect smiley glue to open and close tag

It possible to use the same char as open or close tag for a smiley
Added the possibility to have a smiley glue to open and close tag