Added tests to AppDelegate Spec.