The equivalent of that is working for me. First off, is your terminal beep working? That may be hard to test; you could try printf '\a'
from the command-line.
Also, try running the output through a hex dump tool; either of these should do the trick:
xxd
od -tx1
Verify the bell is coming out as a character with value 7.