Unit test for recognizespeech action.