Allow helpers.mockPrompt to work without arguments

Fix #538, fix #539