Add a test that checks all dialog flags are set when a dialog becomes visible. Renamed existing dialog test for clarity Change-Id: I3677816877860cab3303122e81f9ee30fc563e39