[tests] replace test_instances by external generators for grids