Add a test in app_window_test.js to ensure publish is called with 'namechanged'.