Add AppDelegate tests