Fix bugs and add options for testing send push notification