test-refresh quits when ctrl+d typed.