sug-171 add space at the end if flat expected (tests)