Testing and Research for Smart Grids