Mmmm, I think this is because the script is into a XML block. Maybe we need to automatically escape it.
Meanwhile, try to use this expression:
CONCATENATE('<','TEST')
< is the escape sequence for the less than sign in XML. Please, give it a try and let me know.
PS: Also, if you need > you should use >