added tests for alarmManager