added tests for prompt.js