add a test for adding an application through the API