Fix ncurses tests