add test with curses lib