BUG: test in _element_auto not general enough