test cname and index