Added a test for Apps.has_app.