#4 fixed gateway initialization in AppDelegate.m
#4 fixed selector in gateway failure test