fetchart: fix tests to handle generators