add wait into test_clock_delete_alarm