add tests for and fix checkBoxGroupValue