add test for subclass and non-iterable