rewrite test/data/* to generators