Added test for generation of the head expression for char sequences
Fix for generation of the head expression for char sequences