Added a check for rval list closing brace + 2 unit tests