Fix gcm pushNotification and add test case for array of device tokens.