fix to createLines handling of single line (added tests)