Helper for generator tests.
Added generator tests for int.