Fix treatment of mockPrompt() default functions

When assigning prompt defaults as functions, the `mockPrompt` helper was setting the mocked answer as `"function () { [native code] }"`. This is somewhat less than useful. It also accounts for the `answers` parameter sent to prompt default functions.

Additionally, I fixed some typos that were potentially obfuscating the accuracy of some tests. "Answer" is a weird word.