Fixed an unneeded line in getPrompt
Added test script