test(speechrecognition): add tests for directive