Testing the beep function