add testcase and fix group expression