Add test for latest_app_num