adding support for generator tests