Add tests for global Inquirer methods and the when function to control prompts hierarchie (Fix #19)