Write mocha tests for apps_manager.