Just to test the mic I usually use:
rec -d /dev/dsp2 file.wav
ctrl-c
play file.wav
Yours might be dsp0, "cat /proc/asound/cards" will tell the number.