Add test cases for Generator[Any]