test using alarm()