Testing and diagnostic on software for microcontroller of traction electrical drives