Added javascript tests for PromptingController