Test with duck typing, not classnames