Fix bug in helpers.mockPrompt()

Inquirer API allow a single prompt item to be passed as parameter.
`mockPrompt` must also work with this signature.
Implement the RunContext test helper class
Merge pull request #506 from SBoudrias/testHelpers

Add RunContext test helpers (Fix #498)