Add the testing for alarm's return value