Not sure if it still works, but catting /dev/random to a sound device used to be a great way to test that your speakers were working by producing ear-splitting static noise.
cat /dev/urandom | aplay
Still works well on my machine, and I use it all the time to test :)