Testing and production of rain sensors