testing dialogs in TestApplication (using deprecated onCreateDialog/onPrepareDialog/showDialog)