wrote alerts-controller specs