Adding Mocha tests for app_manager