tests added for str_grammer