search-and-destroy ref regexps; add test for subclasses