Add appPath to mock-prompts.js
Add appPath to test files generate and test write files.