convert test example to inquirer.js