test case in appdelegate