testing error of group end-tag