add brackets epxression test case and fix bug