Fixed bug in AlarmsManager so that AlarmsManagerTest passes again.