FIX: Handle timeout errors when sending push notifications (PR #13312)

Decreases the timeout from 60 to 5 seconds and counts timeouts as errors. It also refactors existing specs to reduce duplicate code.

GitHub