Curses Test Code