Add tests for GridGenerator and IEnumerableExtensions