Fundamentals of testing SCADA