Adding missing code to get url of application. Removing json test.