fixes iTerm test

fixes iTerm test in causing issue #788