Decentralized energy resources, and especially wind farms, have become a challenge for protection, automation and control in electrical grids. Transmission system operators as well as distribution system operators require tests of mains loss and other decoupling protection functions. In some countries, certification of these functions is required. The units are equipped with a huge amount of internal protection functions as well as controls. This requires tests during commissioning or in service. This presentation describes the main strategies and approaches for protection and explains testing using current examples. It focuses on developments in Germany with a huge number of wind farms, but also covers regulations and methods from other countries. An outlook summarizes the issues and proposes future steps.