tests: added test for form control returning string
Latte: fixed checking and error messages for unexpected closing macros