Alerts testing

* Alerts DRY (extracting to modules).
* This touched also Actions a little bit.
* (just) One test for testing alerts.