add a test for appnamechanged event?