Testing handling of multi-line commands