Move local parameters to class for #432 and add test case for #440

Move local parameters to class for #432 and add test case for #440
test_clock_set_alarm_repeat.py
test_clock_set_alarm_snooze.py
test_clock_set_alarm_sound.py
test_clock_set_alarm_time.py