added appDelegate test for login method