test(choicerecognition): add tests
test(choicerecognition): add tests

Add 100% coverage tests for choiceRecogition and change code to handle
errors.

itslanguage/itslanguage-js,Lehren/itslanguage-js,itslanguage/itslanguage-js,Lehren/itslanguage-js