test program start and quit after entering 'q'